<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>module</title>
</head>
<body>

</body>
<script type="text/javascript">
var blogModule = (function (my) {
    // 添加一些功能   
    my.name = "yuan";
    return my;
} (blogModule || {}))

alert(blogModule.name);

</script>
</html>